$(function () {
    var base = new Base64();

    var provinceId, detailStr = '', paraStr = '';

    //获取规格标签列表
    function setGuiGe(commodityNumber) {
        $.ajax({
            type: 'post',
            headers: {"Accept-CMS-Token": token},
            url: finddictlist,
            dataType: 'json',
            data: {
                commodityNumber: commodityNumber,
                type: 1
            },
            success: function (data) {
                if (data.resultCode == 200) {
                    var standard = data.value;
                    var len = standard.length;
                    var str = '';
                    for (var i = 0; i < len; i++) {
                        str += '<option value="' + standard[i].id + '">' + standard[i].name + '</option>';
                    }
                    ;
                    $('.intel_guiGe').append(str);
                    console.log('获取标签列表接口调通!!!!')
                }
                else if (data.resultCode == 515) {
                    reLogin();
                }
            },
            error: function () {
                console.log('获取标签列表接口请求失败')
            },
        });
    };
    setGuiGe('123');

    //获取颜色,尺寸添加到页面当中       代表标签,规格单拎出来...
    function setPageInit(commodityNumber, type, name, Dom) {
        $.ajax({
            type: 'get',
            async: false,
            headers: {"Accept-CMS-Token": token},
            url: finddictlist,
            dataType: 'json',
            data: {
                commodityNumber: commodityNumber,
                type: type
            },
            success: function (data) {
                if (data.resultCode == 200) {
                    var color = data.value;
                    var len = color.length;
                    var str = '';
                    for (var i = 0; i < len; i++) {
                        str += '<dd class="fl project_width"><label><input type="radio" name="' + name + '" value="' + color[i].id + '" class="project" description="' + color[i].name + '">' + color[i].name + '</label></dd>';
                    }
                    ;

                    $(Dom).append(str);
                    console.log('获取标签列表接口调通!!!!')
                }
                else if (data.resultCode == 515) {
                    reLogin();
                }
                console.log('获取标签列表接口调通!!!!')
            },
            error: function () {
                console.log('获取标签列表接口请求失败')
            },
        });
    };
    setPageInit('123', 2, 'color', '.intel_getColor');
    setPageInit('123', 3, 'size', '.intel_getSize');


    // 设置初始化页面的标签,,,要求是复选框,,,都是选中的状态
    function setTagInit(commodityNumber, type, Dom, name) {
        $.ajax({
            type: 'get',
            async: false,
            headers: {"Accept-CMS-Token": token},
            url: finddictlist,
            dataType: 'json',
            data: {
                commodityNumber: commodityNumber,
                type: type
            },
            success: function (data) {
                if (data.resultCode == 200) {
                    var color = data.value;
                    var len = color.length;
                    var str = '';
                    for (var i = 0; i < len; i++) {
                        str += '<dd class="fl project_width"><label><input type="checkbox" name="' + name + '" value="' + color[i].id + '" class="project" description="' + color[i].name + '" checked>' + color[i].name + '</label></dd>';
                    }
                    ;

                    $(Dom).append(str);
                    console.log('获取标签列表接口调通!!!!')
                }
                else if (data.resultCode == 515) {
                    reLogin();
                }
                console.log('获取标签列表接口调通!!!!')
            },
            error: function () {
                console.log('获取标签列表接口请求失败')
            },
        });
    }

    // setTagInit('123',4,'.intel_getTag','intel_tag');

    //点击添加颜色的标签出现弹框
    $('.intel_add_color_tag').click(function () {
        showBounce('.add_color_bounce');
    });

    // 点击添加尺寸的标签出现弹框
    $('.intel_add_size_tag').click(function () {
        showBounce('.add_size_bounce');
    });

    // 点击添加标签,,出现弹框
    $('.intel_add_tag_tag').click(function () {
        showBounce('.intel_add_tag_bounce');
    });

    //出现弹框的一个函数
    function showBounce(Dom) {
        $('.mask-change').show()
        $(Dom).show();
        $(Dom).children('div').children('input').focus();
    };

    //点击确定添加颜色,,,将标签的名字传递到后台....前端的页面当中增加一个对应的标签
    $('.sure_add_color').click(function () {

        addTag('.color_val', 2, '.intel_add_color_tag', 'color');

    });

    // 点击确定添加尺寸,,,将标签的名字传递给后台,,,前端的页面当中增加一个对应的标签
    $('.sure_add_size').click(function () {

        addTag('.size_val', 3, '.intel_add_size_tag', 'size');

    });

    // 点击确定添加标签,,,将标签的名字传递给后台,,,,前端的页面当中增加一个对应的标签
    $('.intel_sure_add_tag').click(function () {

        addCheckBoxTag('.intel_tag_val', 4, '.intel_add_tag_tag', 'intel_tag');

    });

    //添加标签,,,页面中出现复选框,,,前端增加,,
    function addCheckBoxTag(input, type, Dom, name) {
        var input_val = $(input).val();
        if (input_val == '') {
            alert('输入不能为空!')
        }
        else {
            $.ajax({
                type: 'get',
                headers: {"Accept-CMS-Token": token},
                url: savedict,
                dataType: 'json',
                data: {
                    name: input_val,
                    type: type
                },
                success: function (data) {
                    if (data.resultCode == 200) {
                        $(Dom).parent('div').siblings('dl').append('<dd class="fl project_width"><label><input type="checkbox" name="' + name + '" value="' + data.value.id + '" class="project" description="' + data.value.name + '" checked>' + data.value.name + '</label></dd>');
                        // alert('添加成功!');
                        $('.mask-change').hide()
                        $('.add_option').hide();
                        console.log('添加标签接口调通!!!!');
                    }
                    else if (data.resultCode == 515) {
                        reLogin();
                    }
                },
                error: function () {
                    console.log('添加标签接口请求失败');
                },
            });
            $(input).val('');
        }
        ;
    };

    //添加标签,,,前端添加,,,,添加颜色,尺寸都调用这个封装好的函数     添加标签被单拎了出来
    function addTag(input, type, Dom, input_name) {
        var input_val = $(input).val();
        if (input_val == '') {
            alert('输入不能为空!')
        }
        else {
            $.ajax({
                type: 'get',
                headers: {"Accept-CMS-Token": token},
                url: savedict,
                dataType: 'json',
                data: {
                    name: input_val,
                    type: type
                },
                success: function (data) {
                    if (data.resultCode == 200) {
                        $(Dom).parent('div').siblings('dl').append('<dd class="fl project_width"><label><input type="radio" name="' + input_name + '" value="' + data.value.id + '" class="project" description="' + data.value.name + '" checked>' + data.value.name + '</label></dd>');
                        // alert('添加成功!');
                        $('.mask-change').hide()
                        $('.add_option').hide();
                        console.log('添加标签接口调通!!!!');
                    }
                    else if (data.resultCode == 515) {
                        reLogin();
                    }
                },
                error: function () {
                    console.log('添加标签接口请求失败');
                },
            });
            $(input).val('');
        }
        ;
    };

    // 当后台状态码是515时,让客户重新登录
    function reLogin() {
        alert('登录超时,请重新登录!');
        localStorage.clear();
        window.location.href = login_jump;
    };

    //上传封面图片    只能上传一张图片...
    $('.intel_upload_fengMian').change(function () {

        upLoadOnePic(1, '.intel_upload_fengMian', 'input[name = intel_coverUrl]', '.intel_wrap_fengMian');

    });

    //上传图文详情图片  可以支持多张图片
    $('.intel_upload_detail').change(function () {

        upLoadMoreDetailPic('.intel_upload_detail', 'input[name = intel_detailUrl]', '.intel_wrap_datail');

    });

    //双击已经上传的图片....将图片删除
    $(document).on('dblclick', '.putImg img', function () {
        if (confirm('确定删除图片吗?')) {//确定删除
            var source = $(this).attr('src');
            var afterCut = source.slice(address.length) + ',';
            var hidden_val = $(this).parent('div').siblings('label').children('input[type = hidden]').val();
            var perfect = hidden_val.split(afterCut).join('');
            $(this).parent('div').siblings('label').children('input[type = hidden]').val(perfect);
            $(this).remove();//从前端展示的页面当中去掉这张图片
        }
        ;

    });

    //上传图片封装好的函数    只能上传一张图片
    function upLoadOnePic(type, Dom_input, input_hidden, wrap_form) {
        var option = {
            type: "post",
            headers: {"Accept-CMS-Token": token},
            url: saveshopimage,
            data: {
                fileName: 'fileSize',
                type: type
            },
            dataType: 'json',
            async: false,
            error: function (data) {
                alert("Connection error");
            },
            success: function (data) {
                if (data.resultCode == 200) {
                    $(Dom_input).parent('label').siblings('div').children('img').attr('src', address + data.value);
                    $(Dom_input).parent('label').siblings('div').children('img').attr('height', 300);
                    $(input_hidden).val(data.value);
                }
                else if (data.resultCode == 515) {
                    reLogin();
                }
                else {
                    // alert('接口非200,非515,非500')
                }
                ;
            }
        };
        $(wrap_form).ajaxSubmit(option);
    };

    //上传图文详情图片...封装好的函数    上传多张图片      有问题.....
    function upLoadMoreDetailPic(Dom_input, input_hidden, wrap_form) {
        var option = {
            type: "post",
            headers: {"Accept-CMS-Token": token},
            url: savemanyimage,
            data: {
                upfile: 'upfile',
                // type:type
            },
            dataType: 'json',
            async: false,
            error: function (data) {
                alert("Connection error");
            },
            success: function (data) {
                if (data.resultCode == 200) {
                    var detailStr = $(input_hidden).val();
                    if (detailStr != '') {
                        detailStr = detailStr + ',';
                    }
                    ;
                    var newStr = data.value.split(',');
                    for (var i = 0; i < newStr.length; i++) {
                        $(Dom_input).parent('label').siblings('div').append('<img src="' + address + newStr[i] + '" width="230" height="150">');
                    }
                    ;
                    detailStr = detailStr + data.value + ',';

                    $(input_hidden).val(detailStr.substring(0, detailStr.length - 1));
                }
                else if (data.resultCode == 515) {
                    reLogin();
                }
                else {
                    // alert('接口非200,非515,非500')
                }
                ;
            }
        };
        $(wrap_form).ajaxSubmit(option);
    };

    //上传产品参数图片...封装好的函数    上传多张图片      有问题.....
    function upLoadMoreParaPic(type, Dom_input, input_hidden, wrap_form) {
        var option = {
            type: "post",
            headers: {"Accept-CMS-Token": token},
            url: saveshopimage,
            data: {
                fileName: 'fileSize',
                type: type
            },
            dataType: 'json',
            async: false,
            error: function (data) {
                alert("Connection error");
            },
            success: function (data) {
                if (data.resultCode == 200) {
                    $(Dom_input).parent('label').siblings('div').append('<img src="' + address + data.value + '" width="230" height="150">');

                    paraStr = paraStr + data.value + ',';

                    $(input_hidden).val(paraStr);
                }
                else if (data.resultCode == 515) {
                    reLogin();
                }
                else {
                    // alert('接口非200,非515,非500')
                }
                ;
            }
        };
        $(wrap_form).ajaxSubmit(option);
    };

    //产地.....要用到获取省这个接口...
    function getPlaceOfOrigin() {
        $.ajax({
            type: 'get',
            headers: {"Accept-CMS-Token": token},
            url: provincelist,
            dataType: 'json',
            data: {},
            success: function (data) {
                if (data.resultCode == 200) {
                    var value = data.value;
                    var str = '';
                    for (var i = 0; i < value.length; i++) {
                        str += '<option value="' + value[i].id + '">' + value[i].fullName + '</option>'

                    }
                    $('.intel_place_of_origin').append(str);
                    console.log('获取省接口调通!!!!');
                }
                else if (data.resultCode == 515) {
                    reLogin();
                }
            },
            error: function () {
                console.log('获取省接口请求失败');
            },
        });
    };
    getPlaceOfOrigin();

    //根据省查询市.......
    function getCity(provinceId) {
        $.ajax({
            type: 'get',
            headers: {"Accept-CMS-Token": token},
            url: findcitybyprovinceid,
            async: false,
            dataType: 'json',
            data: {
                provinceId: provinceId
            },
            success: function (data) {
                if (data.resultCode == 200) {
                    var value = data.value;
                    var str = '';
                    for (var i = 0; i < value.length; i++) {
                        str += '<option value="' + value[i].id + '">' + value[i].fullName + '</option>'

                    }
                    ;
                    $('.intel_city').html('');
                    $('.intel_city').append(str);
                    console.log('根据省查询市接口调通!!!!');
                }
                else if (data.resultCode == 515) {
                    reLogin();
                }
            },
            error: function () {
                console.log('根据省查询市接口请求失败');
            },
        });
    };

    // 当place_of_origin这个change时....在调用根据省查询市这个接口,,,获取这个省对应的城市.....
    $('.intel_place_of_origin').change(function () {

        provinceId = $('.intel_place_of_origin option:selected').val();

        getCity(provinceId);
    });

    //点击保存,,,将整个页面的信息都保存提交给后台,,,并跳转到智能硬件的页面
    $('.save_add_intelligence').click(function () {

        if ($("#shopCategory").val() == "") {
            layer.msg("请选择品类");
        }

        // 验证表单的text,,,radio,,,和select,,,hidden,,textarea不能为空
        var text = $('.intel_shop_info input[type = text]');
        var number = $('.intel_shop_info input[type = number]');

        // 验证text不能为空....
       /* for (var i = 0; i < text.length; i++) {
            if (text.eq(i).val() == ''&&text.eq(i)!=$("#intel_modelName")) {

                $(text).eq(i).after('<span class="tips">*不能为空</span>');
                return false;
            }
            else {
                $(text).eq(i).siblings('span.tips').html('');
            }
            ;
        }
        ;*/

        // 验证number输入框不能为空
        for (var i = 0; i < number.length; i++) {
            if (number.eq(i).val() == '') {
                $(number).eq(i).after('<span class="tips">*不能为空</span>');
                return false;
            }
            else {
                $(number).eq(i).siblings('span.tips').html('');
            }
            ;
        }
        ;

        //验证radio不能为空       color不能为空....
      /*  if ($('.intel_shop_info input[name = color]:checked').val() == undefined) {
            $('.getColor').append('<dd class="fl project_width span_tips"><span class="tips">*不能为空</span></dd>');
            return false;
        }
        else {
            $('.getColor').children('dd.span_tips').html('');
        }
        ;
        //验证radio不能为空       size不能为空....
        if ($('.intel_shop_info input[name = size]:checked').val() == undefined) {
            $('.getSize').append('<dd class="fl project_width span_tips"><span class="tips">*不能为空</span></dd>');
            return false;
        }
        else {
            $('.getSize').children('dd.span_tips').html('');
        }
        ;
        //验证select不能为空      status不能为空
        if ($('.intel_status option:selected').val() == 0) {
            $('.intel_status').after('<span class="tips" style="margin:0 0 0 10px;">*不能为空</span>');
            return false;
        }
        else {
            $('.intel_status').parent('dd').children('span.tips').html('');
        }
        ;
        //验证select不能为空      place_of_origin不能为空
        if ($('.intel_place_of_origin option:selected').val() == 0) {
            $('.intel_place_of_origin').parent('label').append('<span class="tips">*不能为空</span>');
            return false;
        }
        else {
            $('.intel_place_of_origin').parent('label').children('span.tips').html('');
        }
        ;
        //验证select不能为空      city不能为空
        if ($('.intel_city option:selected').val() == 0) {
            $('.intel_city').parent('label').append('<span class="tips">*不能为空</span>');
            return false;
        }
        else {
            $('.intel_city').parent('label').children('span.tips').html('');
        }
        ;

        //验证select不能为空      guiGe不能为空
        if ($('.intel_guiGe option:selected').val() == 0) {
            $('.intel_guiGe').after('<span class="tips" style="margin:0 0 0 10px;">*不能为空</span>');
            return false;
        }
        else {
            $('.intel_guiGe').parent('dd').children('span.tips').html('');
        }
        ;*/
        //上传图片不能为空      coverUrl不能为空
        if ($('input[name = intel_coverUrl]').val() == '') {
            $('input[name = intel_coverUrl]').parent('label').after('<span class="tips picTips" style="margin:0 0 0 10px;">*不能为空</span>');
            return false;
        }
        else {
            $('input[name = intel_coverUrl]').parent('label').siblings('span.picTips').html('');
        }
        ;
        //向后台发送请求!!!
        sendAjax();
    });

    // 封装好的函数向后台传递参数,,,当发送成功以后跳转整个页面
    function sendAjax() {
        var lableIdStr = '';
        var lableNameStr = '';
        //获取被选中的checkbox....
        for (var i = 0; i < $('input[name = intel_tag]:checked').length; i++) {
            lableIdStr = lableIdStr + $('input[name = intel_tag]:checked').eq(i).val() + ',';
            lableNameStr = lableNameStr + $('input[name = intel_tag]:checked').eq(i).attr('description') + ',';
        }
        ;

        // 获取用户自定义的产品参数
        var commodity, commodity_json = {};
        var len = $('.param_name').length;
        for (var i = 0; i < len; i++) {

            if ($('.param_name').eq(i).val() != '') {

                commodity_json[$('.param_name').eq(i).val()] = $('.param_value').eq(i).val();

            }
            ;

        }
        ;
        commodity = JSON.stringify(commodity_json);



        $.ajax({
            type: 'post',
            async: false,
            headers: {"Accept-CMS-Token": token},
            url: saveshopcommondity,
            dataType: 'json',
            data: {
                // 产品参数
                commodity: base.encode(commodity),
                // 页面当中其他部分的信息
                afterSalesService: $('textarea[name = intel_afterSalesService]').val(),
                alias: '',
                areaCityId: $('.intel_city option:selected').val(),
                areaCityName: $('.intel_city option:selected').html(),
                areaProvinceId: $('.intel_place_of_origin option:selected').val(),
                areaProvinceName: $('.intel_place_of_origin option:selected').html(),
                categoryIdcategoryId: '',
                categoryName: '',
                colorId: $('input[name = color]:checked').val(),
                colorName: $('input[name = color]:checked').attr('description'),
                company: $('input[name = intel_company]').val(),
                coverUrl: $('input[name = intel_coverUrl]').val(),
                commodityDetailImgUrl: $('input[name = intel_detailUrl]').val(),
                directions: '',
                effect: '',
                info: $('textarea[name = intel_info]').val(),
                lableId: lableIdStr,
                lableName: lableNameStr,
                machining: '',
                meridian: '',
                modelName: $('input[name = intel_modelName]').val(),
                name: $('input[name = intel_name]').val(),
                number: $('input[name = intel_number]').val(),
                packingList: $('textarea[name = intel_packingList]').val(),
                parameterUrl: $('input[name = intel_parameterUrl]').val(),
                position: '',
                price: $('input[name = intel_price]').val(),
                publicCommodityHardUrl: '',
                publicCommodityMedicineUrl: '',
                shape: '',
                sizeId: $('input[name = size]:checked').val(),
                sizeName: $('input[name = size]:checked').attr('description'),
                specificationId: $('.intel_guiGe option:selected').val(),
                specificationName:  $('.intel_guiGe option:selected').html(),
                status: $('.status option:selected').val(),
                taboo: '',
                taste: '',
                totalNum: $('input[name = intel_totalNum]').val(),
                type: $("#shopCategory").val(),
                useing: $('textarea[name = intel_useing]').val()
            },
            success: function (data) {
                if (data.resultCode == 200) {
                    alert('保存成功!');
                    //window.location.href = shangpin_admin;
                    console.log('添加智能硬件接口调通!!!!');
                }
                else if (data.resultCode == 515) {
                    reLogin();
                }
            },
            error: function () {
                console.log('添加智能硬件接口请求失败');
            },
        });

    };

    // 载入中的ajax请求成功的时候执行这个函数.......
    function successIntelLoadInfo(data) {
        if (data.resultCode == 200) {
            var value = data.value;
            if (value.length > 0) {
                // 将后台返回来的数据取其中一条...回显到页面当中...
                $('input[name = intel_number]').val(value[0].number);
                $('input[name = intel_name]').val(value[0].name);
                $('input[name = intel_price]').val(value[0].price);
                $('input[name = intel_totalNum]').val(value[0].totalNum);
                $('input[name = intel_modelName]').val(value[0].modelName);
                $('input[name = intel_company]').val(value[0].company);
                //颜色和尺寸先暂时不写


                // 标签回显...载入的时候...先清空...然后重新载入...
                clearTag();
                var lableIdStr = value[0].lableId.split(',');
                var lableNameStr = value[0].lableName.split(',');
                ;
                for (var a = 0; a < lableIdStr.length - 1; a++) {
                    $('.intel_getTag').append('<dd class="fl project_width"><label><input type="checkbox" name="tag" value="' + lableIdStr[a] + '" class="project" description="' + lableNameStr[a] + '" checked>' + lableNameStr[a] + '</label></dd>');
                }
                ;

                // 品类
                for (var j = 0; j < $('#shopCategory option').length; j++) {
                    if ($('#shopCategory option').eq(j).val() == value[0].type) {
                        $('#shopCategory option').eq(j).attr('selected', 'selected');
                        break;
                    }
                    ;
                }
                ;

                // 状态回显
                if (value[0].status == 1) {
                    $('.intel_status option').eq(1).attr('selected', 'selected');
                }
                else {
                    $('.intel_status option').eq(2).attr('selected', 'selected');
                }
                ;
                // 产地----省回显
                for (var i = 0; i < $('.intel_place_of_origin option').length; i++) {
                    if ($('.intel_place_of_origin option').eq(i).val() == value[0].areaProvinceId) {
                        $('.intel_place_of_origin option').eq(i).attr('selected', 'selected');
                        break;
                    }
                    ;
                }
                ;
                getCity(value[0].areaProvinceId);
                // 产地-----市回显
                for (var j = 0; j < $('.intel_city option').length; j++) {
                    if ($('.intel_city option').eq(j).val() == value[0].areaCityId) {
                        $('.intel_city option').eq(j).attr('selected', 'selected');
                        break;
                    }
                    ;
                }
                ;
                // 规格回显
                for (var q = 0; q < $('.intel_guiGe option').length; q++) {
                    if ($('.intel_guiGe option').eq(q).val() == value[0].specificationId) {
                        $('.intel_guiGe option').eq(q).attr('selected', 'selected');
                        break;
                    }
                }
                ;
                $('.intel_wrap_fengMian div div img').attr('src', address + value[0].coverUrl);
                $('.intel_wrap_fengMian div div img').attr('height', 300)
                $('input[name = intel_coverUrl]').val(value[0].coverUrl);
                // 图文详情回显数据
                if (value[0].detailUrl != undefined && value[0].detailUrl != '') {

                    var imgDetailArr = value[0].detailUrl.split(',');
                    if (imgDetailArr.length == 1) {
                        $('.intel_wrap_datail div div').append('<img src="' + address + imgDetailArr[0] + '" width="230" height="150">');
                    }
                    else {
                        for (var x = 0; x < (imgDetailArr.length); x++) {//原来是最后一个是有逗号的....现在要把逗号给去了....就不用减一了...
                            $('.intel_wrap_datail div div').append('<img src="' + address + imgDetailArr[x] + '" width="230" height="150">');
                        }
                        ;
                    }
                    ;
                }


                console.log( base.decode(value[0].commodity))

                $('input[name = intel_detailUrl]').val(value[0].detailUrl);

                $('textarea[name = intel_info]').val(value[0].info);
                $('textarea[name = intel_packingList]').val(value[0].packingList);
                $('textarea[name = intel_afterSalesService]').val(value[0].afterSalesService);
                $('textarea[name = intel_useing]').val(value[0].useing);

            }
            ;
            // console.log(data)
            console.log('根据名称查找接口调通!!!!');
        }

        else if (data.resultCode == 500) {
            alert('亲,商品原来没有!请重新输入......');
        }
        else if (data.resultCode == 515) {
            reLogin();
        }
    };

//载入,,,点击载入这个按钮,,,向后台发送请求...
    $('.intel_load_info').click(function () {
        var name = $('input[name = intel_name]').val(),
            number = $('input[name = intel_number]').val();

        if (name == '' && number == '') {
            alert('亲,请输入编号或者名称!');
        }
        else {
            // 获取到值以后向后台发送请求
            $.ajax({
                type: 'get',
                headers: {"Accept-CMS-Token": token},
                url: findbynameornumber,
                dataType: 'json',
                data: {
                    name: name,
                    number: number
                },
                success: successIntelLoadInfo,
                error: function () {
                    console.log('根据名称查找接口请求失败');
                },
            });
        }
        ;
    });

//载入商品信息的标签...先清空...然后重新加载..
    function clearTag() {
        $('.intel_getTag').html('');
        $('.intel_getTag').append('<dt class="fl">标签</dt>');
    };

// 点击添加...将产品参数追加到表格后面
    $('span.add_para_table').click(function () {

        $('.productPara tbody').append('<tr><th><input type="text" name="" value="" class="font_white param_name" placeholder="请输入"></th><td><input type="text" value="" placeholder="请输入" class="param_value"></td></tr>');

    });


})
;
